s=input()

for i in s:
    if i>='A' and i<='Z':
        print(chr(155-ord(i)),end='')
    else:
        print(i,end='')